Type Definitions
The following type definitions are available globally.
-
MCLEvent.data keys
Declaration
Objective-C
typedef NSString MCLEventDataKey
-
Declaration
Objective-C
typedef void (^MCLShareConfigBlock)(MCLShareConfig *config)
Swift
typealias MCLShareConfigBlock = (MCLShareConfig) -> Void
-
Declaration
Objective-C
typedef void (^MCLPreviewConfigBlock)(MCLPreviewConfig *config)
Swift
typealias MCLPreviewConfigBlock = (MCLPreviewConfig) -> Void
-
Declaration
Objective-C
typedef void (^MCLRecordingConfigBlock)(MCLRecordingConfig *config)
Swift
typealias MCLRecordingConfigBlock = (MCLRecordingConfig) -> Void
-
Declaration
Objective-C
typedef void (^MCLReferralCodeCallback)(NSString *referralCode)
Swift
typealias MCLReferralCodeCallback = (String) -> Void
-
Declaration
Objective-C
typedef struct MegacoolLinkClickedEvent { int isFirstSession; const char *userId; const char *shareId; const char *url; } MegacoolLinkClickedEvent
-
Declaration
Objective-C
typedef struct MegacoolReceivedShareOpenedEvent { const char *userId; const char *shareId; int state; double createdAt; double updatedAt; const void *dataBytes; int dataLength; const char *url; int isFirstSession; } MegacoolReceivedShareOpenedEvent
-
Declaration
Objective-C
typedef struct MegacoolSentShareOpenedEvent { const char *userId; const char *shareId; int state; double createdAt; double updatedAt; const char *receiverUserId; const char *url; int isFirstSession; const void *eventDataBytes; int eventDataLength; } MegacoolSentShareOpenedEvent
-
Declaration
Objective-C
typedef struct MegacoolUnityShare { const char *userId; const char *shareId; int state; double createdAt; double updatedAt; const void *dataBytes; int dataLength; } MegacoolUnityShare
-
Declaration
Objective-C
typedef struct mcl_share_config { const char *recording_id; const char *message; const char *fallback_image; const char *url; const char *jsonData; int strategy; } mcl_share_config
-
Declaration
Objective-C
typedef struct mcl_recording_config { const char *recording_id; int overflow_strategy; int max_frames; int frame_rate; int playback_frame_rate; int last_frame_delay; double peak_location; const char *last_frame_overlay; } mcl_recording_config
-
Declaration
Objective-C
typedef void (*MegacoolDidCompleteShareDelegate)(void)
Swift
typealias MegacoolDidCompleteShareDelegate = () -> Void
-
Declaration
Objective-C
typedef void (*MegacoolDidDismissShareViewDelegate)(void)
Swift
typealias MegacoolDidDismissShareViewDelegate = () -> Void
-
Declaration
Objective-C
typedef void (*EventHandlerDelegate)(const void *, int)
Swift
typealias EventHandlerDelegate = (UnsafeRawPointer?, Int32) -> Void
-
Declaration
Objective-C
typedef void (*OnLinkClickedEvent)(MegacoolLinkClickedEvent)
Swift
typealias OnLinkClickedEvent = (MegacoolLinkClickedEvent) -> Void
-
Declaration
Objective-C
typedef void (*OnReceivedShareOpenedEvent)(MegacoolReceivedShareOpenedEvent)
Swift
typealias OnReceivedShareOpenedEvent = (MegacoolReceivedShareOpenedEvent) -> Void
-
Declaration
Objective-C
typedef void (*OnSentShareOpenedEvent)(MegacoolSentShareOpenedEvent)
Swift
typealias OnSentShareOpenedEvent = (MegacoolSentShareOpenedEvent) -> Void
-
Declaration
Objective-C
typedef void (*OnRetrievedShares)(MegacoolUnityShare[], int)
Swift
typealias OnRetrievedShares = (UnsafeMutablePointer<MegacoolUnityShare>?, Int32) -> Void
-
Declaration
Objective-C
typedef struct mcl_preview_data mcl_preview_data
-
Declaration
Objective-C
typedef struct mcl_preview_frame { char *path; int delay_ms; } mcl_preview_frame